package com.itheima.memory;

public class ArrayDemo1 {
    public static void main(String[] args) {
        //数组基本类型变量和引用类型变量
        int[] arr = new int[3];
        arr[0] = 1;
        System.out.println(arr);
        //数组的遍历
        for (int i = 0; i < arr.length; i++) {
            System.out.println(arr[i]);
        }
        for (int i : arr) {
            System.out.println(i);
        }
    }
}
